#!/usr/bin/expect



set pwd sophist

spawn   ssh worklogprod -o StrictHostKeyChecking=no cp t1 t3



expect "root@worklogprod's password: "



send "sophist\r"


expect eof